<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>

    <script>
        // var person = new Object;
        // person.name = "zhangsan";
        // person.age = 10;
        // person.eat = function(food){
        //     document.write(this.name+this.age+"岁了，喜欢吃"+food);

        // }
        var person = {
            "name" : "lisi",
            "age": 10,
            "eat":function(food){
                document.write(this.name+this.age+"岁了，喜欢吃"+food);
            }

        }
        

        person.eat("烤肉")

    </script>



</head>
<body>
    
</body>
</html>